package com.ba.base.api

import com.ba.base.model.vo.UploadResult
import okhttp3.MultipartBody
import qsos.core.lib.config.CoreConfig
import retrofit2.Call
import retrofit2.http.*

/**
 *
 *
 * 文件上传接口
 */
interface ApiFile {

    companion object {

        val UPLOAD_URL: String
            get() = CoreConfig.BASE_URL +
                    ApiAuth.POST +
                    "/api/file-service/file/app/imageVideo"
    }

    @Multipart
    @POST
    fun uploadFiles(
        @Url url: String,
        @Part files: List<MultipartBody.Part>,
        @Header("Authorization") header: String = ApiAuth.bearer
    ): Call<UploadResult>

}